package com.smbms.service.impl;

import com.smbms.dao.ProviderMapper;
import com.smbms.pojo.Provider;
import com.smbms.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    ProviderMapper providerMapper;

    @Override
    public List<Provider> findALl() throws IOException{
        List<Provider> providerList = providerMapper.findAll();
        //可以不关
        //sqlSession.close();
        return providerList;
    }

    @Override
    public List<Provider> findBill(){
        return providerMapper.findBill();
    }
}
